package Demo.Service;

import Demo.Pojo.User;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class UserService {

    public List getInfo(){

        List<User> users = new ArrayList<User>();

        User u = new User();
        u.setAddress("东莞");
        u.setName("叶志铭");
        users.add(u);

        User u1 = new User();
        u1.setAddress("新几内亚");
        u1.setName("方立");
        users.add(u1);

        User u2 = new User();
        u2.setAddress("墨西科");
        u2.setName("多夫朗峰");
        users.add(u2);

        return  users;

    }
}
